package org.linlinjava.litemall.db.dao;

import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Update;
import org.linlinjava.litemall.db.domain.LitemallPosAd;

import java.util.List;

public interface LitemallPosAdMapper extends MPJBaseMapper<LitemallPosAd> {
    List<LitemallPosAd> PosAdSearchAll(Integer shopId, Integer adminId);
    @Update(" UPDATE litemall_pos_ad SET is_open = 0 WHERE NOW() NOT BETWEEN start_time and end_time")
    void posAdPastDue();

}
